<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
	<title>User view</title>
    <c:url value="/js/jquery-1.3.2.min.js" var="url"/>
    <script type="text/javascript" src="${url}"> </script>
    <c:url value="/js/user_form.js" var="url"/>
    <script type="text/javascript" src="${url}"> </script>
</head>
<body>
<div style="float: left">
    <table>
        <tr><td>Название</td><td><c:out value="${lection.name}"/></td></tr>
        <tr><td>Презентации</td><td>
	       	<c:forEach var="file" items="${lection.presentationFiles}">
	       		<c:url var="url" value="/file/${file.id}"/>
	       		<a  href="${url}"><c:out value="${file.fileName}"/></a><br/>
	       	</c:forEach>
        </td></tr>
        
        <tr><td>Вопросы</td><td>
	       	<c:forEach var="file" items="${lection.questionFiles}">
	       		<c:url var="url" value="/file/${file.id}"/>
	       		<a  href="${url}"><c:out value="${file.fileName}"/></a><br/>
	       	</c:forEach>
        </td></tr>
        
        <tr><td>Другое</td><td>
	       	<c:forEach var="file" items="${lection.otherFiles}">
	       		<c:url var="url" value="/file/${file.id}"/>
	       		<a  href="${url}"><c:out value="${file.fileName}"/></a><br/>
	       	</c:forEach>
        </td></tr>
	</table>
</div>			
</body>
</html>